package com.chengdu.third.service.Impl;

import com.chengdu.third.dao.ITsxxDao;
import com.chengdu.third.pojo.Tsxx;
import com.chengdu.third.service.ITsxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jingbo
 * @create 2021--08--15  21:51
 */

@Service
public class ITsxxServiceImpl implements ITsxxService {

    @Autowired
    private ITsxxDao iTsxxDao;

    @Override
    public List<Tsxx> findAll() {
        return iTsxxDao.find();
    }

    @Override
    public void deleteByid(long id) {
        iTsxxDao.delete(id);
    }

    @Override
    public void updateByid(Tsxx tsxx) {
           iTsxxDao.update(tsxx);
    }

    @Override
    public void addtsxx(Tsxx tsxx) {
          iTsxxDao.add(tsxx);
    }

    @Override
    public Tsxx getTsxxById(long id) {
        return iTsxxDao.getTsxxById(id);
    }
}
